$(function (){
$(".button").click(function (){
    let username  = $("input[name='username']").val();
    let  password = $("input[name='password']").val();
    $.ajax({
        url:"/lo/gin",
        data:{userName:username,passWord:password},
        type:"get",
        success:function (resDate){
            if(resDate==1){
                window.location.href="emplist.html";
            }else{
                alert("用户名或密码错误");
            }
        }


    })

    })




});